import { ComponentTypeEnum } from './types/index';

// --------- 表单组件属性类型常量 -----------
export const DISABLED_TYPE = 0; // 只读

export const REQUIRED_TYPE = 2; // 必填

export const FIELD_TYPE_HIDE = 13; // 隐藏类型

export const VALUE_FIELD_TYPE = 0; // 获取固定内容隐藏字段值
export const PASS_FIELD_TYPE = 1; // 获取传递字段值
export const TARGET_FIELD_TYPE = 5; // 获取目标字段值
export const SELECT_COM_TYPE = [ComponentTypeEnum.ApiSelect, ComponentTypeEnum.ApiTreeSelect];

export const SINGLE_SELECT = 1; // 单选
export const MULTIPLE_SELECT = 2; // 多选
export const DEFAULT_COM = 'Input';

//  --------- 列表属性类型常量-----------

export const DICT_SEARCH_TYPE = 100; // 字典查询设置
export const DATA_SOURCE_TYPE_TYPE = '-1'; // 固定数据源
export const DATA_DICT_TYPE = '-2'; // 字典
export const DATA_API_SOURCE_TYPE = '-3'; // apicode

export const SELECT_DEPT_USER_ROLE_POST_TYPE = [
  ComponentTypeEnum.HChoosePost,
  ComponentTypeEnum.HChooseRole,
  ComponentTypeEnum.HChooseUser,
  ComponentTypeEnum.HChooseDept,
];
